-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix wrong key name in unknown decoration option error #1375
Fix wrong key name in unknown decoration option error #1375
Conversation
{\tikzerror{Unknown decoration option '\pgfkeyscurrentname'. | ||
I do not know the key '/pgf/decoration/\pgfkeyscurrentname' | ||
and I am going to ignore it. Perhaps you misspelled it}}}% |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we somehow keep the /errors/unknown key
handler?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using /error/unknown key
handler, the full error message looks like
! Package pgfkeys Error: I do not know the key '/pgf/decoration/red' and
I am going to ignore it. Perhaps you misspelled it.
See the pgfkeys package documentation for explanation.
which seems less helpful as user should really be led to the tikz doc, not pgfkeys doc.
But I confess current \tikzerror
way is not good too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then maybe an additional error handler for decorations?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I decided to save time and just switch back to /errors/unknown key
.
9248aaf
to
ab79a72
Compare
Signed-off-by: Yukai Chou <[email protected]>
Introduced by previous fix pgf-tikz#1083. Signed-off-by: Yukai Chou <[email protected]>
ab79a72
to
46af807
Compare
Sigh, naming of per-issue tests (after 054f118) is still not so consistent. (And sorry for the (force push) noise because I forgot to sign off.) |
Motivation for this change
Fixes #1082.
Previous PR #1083 tried to fix it but left a wrong key name in the error message, see analysis in #1083 (comment) and #1082 (comment).
I also changed it from
pgfkeys
error totikz
error.Checklist
Please signoff your commits to explicitly state your agreement to the Developer Certificate of Origin. If that is not possible you may check the boxes below instead: